/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const userRouter = {
  path: '/user',
  component: Layout,
  redirect: '/user/dashboard',
  hidden: true,
  children: [
    {
      path: 'dashboard',
      component: () => import('@/views/dashboard/index'),
      name: 'Dashboard',
      meta: { title: '概览' }
    },
    {
      path: 'tunnelPersonnel',
      component: () => import('@/views/personnelMonitoring/TunnelPersonnel'),
      name: 'tunnelPersonnel',
      meta: { title: '实时定位' }
    },
    {
      path: 'personnelInquiry',
      component: () => import('@/views/personnelMonitoring/PersonnelInquiry'),
      name: 'personnelInquiry',
      meta: { title: '历史位置查询' }
    },
    {
      path: 'attendance',
      component: () => import('@/views/DataStatistics/AttendanceLog'),
      name: 'attendance',
      meta: { title: '考勤统计' }
    },
    {
      path: 'alarmMessage',
      component: () => import('@/views/alarmMessage/AlarmMessage'),
      name: 'alarmMessage',
      meta: { title: '报警信息' }
    },
    {
      path: 'environmental',
      component: () => import('@/views/environmental/Environmental'),
      name: 'environmental',
      meta: { title: '环境监测' }
    },
    {
      path: 'security',
      component: () => import('@/views/security/Security'),
      name: 'security',
      meta: { title: '视频监测' }
    },
    {
      path: 'employeeshare',
      component: () => import('@/views/employeeShare/EmployeeShare'),
      name: 'employeeshare',
      meta: { title: '共享员工' }
    },
    {
      path: 'employeeList',
      component: () => import('@/views/employeeShare/EmployeeList'),
      name: 'employeeList',
      meta: { title: '员工列表' }
    },
    {
      path: 'onlineRate',
      component: () => import('@/views/onlineRate/OnlineRate'),
      name: 'onlineRate',
      meta: { title: '在线率统计' }
    },
    {
      path: 'tunnelDiagram',
      component: () => import('@/views/tunnelDiagram/index'),
      name: 'tunnelDiagram',
      meta: { title: '隧道示意图' }
    }
  ]
}

export default userRouter
